home *** CD-ROM | disk | FTP | other *** search
/ Best Tools for JAVA / Best Tools for JAVA.iso / POSTSCPT / GSVIEW / SRC / GVC.DOC < prev    next >
Encoding:
Text File  |  1996-01-04  |  74.4 KB  |  2,017 lines

  1. 1Overview
  2. ?Overview
  3. W
  4.  `GSview for Windows` is a graphical interface for MS-Windows `Ghostscript`.
  5. P
  6.  `PM GSview` is a graphical interface for OS/2 `Ghostscript`.
  7. E
  8.  Ghostscript is an interpreter for the PostScript page description language
  9.  used by laser printers.
  10.  For documents following the Adobe PostScript Document Structuring
  11.  Conventions,
  12.  GSview allows selected pages to be viewed or printed.
  13. W
  14.  GSview should be used with Ghostscript 3.53 or later.
  15. P
  16.  GSview should be used with Ghostscript 3.53 or later.
  17. E
  18.  GSview was inspired by Tim Theisen's X11 Ghostview program.
  19. 2Installation
  20. ?Installation
  21.  It is recommended that you use the installation program for
  22.  installing GSview.  For OS/2, use os2setup.exe.  For MS-Windows, 
  23.  use winsetup.exe.  See the file README.GV for more details.
  24.  
  25.  If you wish to install GSview manually, see the `Manual Installation`
  26.  topic.
  27. 3Uninstalling GSview and Ghostscript
  28.  To uninstall GSview, remove all the files in the `gsview` directory.
  29.  To uninstall Ghostscript, remove all the files in the `gs3.53` directory.
  30.  
  31.  Also remove
  32. P
  33.   c:\os2\gvpm.ini
  34. W
  35.   c:\windows\gsview.ini
  36.   c:\windows\gsview32.ini
  37.   c:\windows\gswin.ini
  38.   c:\windows\gswin32.ini
  39. E
  40.  from the appropriate system directory.
  41.  
  42. P
  43.  Remove the `GSview` program object from the desktop.
  44. W
  45.  Remove the `GS Tools` group from the Program Manager.
  46.  
  47.  If you know how to edit the registry, remove the following keys:
  48.   psfile
  49.   .eps 
  50.   .ps
  51. E
  52. 3Manual Installation
  53. ?Manual Installation
  54.  It is recommended that you use the installation program for
  55.  installing GSview.  The following instructions describe how
  56.  to install GSview without using the installation program.
  57.  
  58. W
  59.  First you need to install Ghostscript.
  60.  It is recommended that Ghostscript 3.53 or later be used.
  61.  (If you wish to use 16-bit Ghostscript 2.6.1, see the 
  62.  `Ghostscript Version` topic.
  63.  If using the 32-bit versions of GSview or Ghostscript, you must use
  64.  Ghostscript 3.12 or later.)
  65. P
  66.  First you need to install Ghostscript 3.12 or later.
  67.  This version of GSview will not work with earlier versions of Ghostscript.
  68.  Ghostscript 3.53 or later is preferred.
  69. E
  70.  
  71.  Make a directory d:\gsview.
  72.  
  73.  Next install
  74. P
  75.  PM GSview by copying gvpm.exe and gvpm.hlp
  76. W
  77.  GSview for Windows by copying gsview.exe, gsview32.exe, gsview.hlp
  78.  and gsv16spl.exe
  79. E
  80.  to the `d:\gsview` directory.
  81.  
  82.  Start GSview then select `Options` | `Configure Ghostscript`.
  83.  
  84.  Enter the correct executable path for Ghostscript.
  85.  For example
  86. P
  87.    c:\gs3.53\gsos2.exe
  88. W
  89.    c:\gs3.53\gswin.exe
  90. E
  91.  
  92.  Enter the correct Ghostscript include path into the
  93.  `Ghostscript Include Path` field.
  94.  This include path must include the directories where the Ghostscript
  95.  library files (gs_*.ps and Fontmap) and the Ghostscript fonts (*.gsf)
  96.  are located. For example:
  97. P
  98.    c:\gs3.53;c:\gs3.53\fonts;c:\psfonts
  99. W
  100.    c:\gs3.53;c:\gs3.53\fonts
  101. E
  102.  Do NOT put a `-I` before the include path.
  103.  
  104.  Leave the `Other Options` field empty.
  105.  
  106.  If you do not get the `Ghostscript EXE` field correct, GSview will
  107.  not be able to load Ghostscript.
  108.  If you do not get the `Ghostscript Include Path` correct, Ghostscript
  109.  will immediately exit with an error code.
  110.  
  111. W
  112.  Under Windows 95 or NT, the 32 bit version of GSview (gsview32.exe)
  113.  requires the 32 bit version of Ghostscript (gswin32.exe), and
  114.  the 16 bit version of GSview (gsview.exe) requires the 16 bit
  115.  version of Ghostscript (gswin.exe).  Under Windows 95 or NT you
  116.  need a version of Ghostscript later than 3.12.
  117.  Under Windows 3.1 with Win32s, the 16 and 32 bit versions can
  118.  be intermixed.
  119.  
  120. E
  121.  Set the environment variable TEMP to point to a directory for
  122.  temporary files.  For example:
  123.    SET TEMP=c:\temp
  124.  The directory must exist and must be writeable.
  125.  
  126.  If you have some Type 1 fonts on your system, it may be possible to
  127.  tell Ghostscript to use them.  See `Fontmap.os2` and `Fontmap.atm`
  128.  supplied with Ghostscript for examples.  See the `Fonts` topic.
  129.  
  130.  If you have problems, try reading the help topic `Common Problems`.
  131. 3Ghostscript Installation
  132. ?Ghostscript Installation
  133.  The following describes how to install Ghostscript, not GSview.
  134.  The primary documentation on installing Ghostscript is found in
  135.  the Ghostscript file use.doc.
  136.  
  137.  Aladdin Ghostscript for the PC is available on the Internet from
  138.   ftp://ftp.cs.wisc.edu/ghost/aladdin/gsNNNxxx.zip
  139.  Where NNN is the version number.   
  140.  For Ghostscript 3.53, the files required to run Ghostscript are:
  141.   gs353ini.zip
  142.  plus one or more of
  143.   gs353dos.zip   (MS-DOS 386 EXE)
  144.   gs353os2.zip   (OS/2 2.0 or later EXE)
  145.   gs353win.zip   (MS-Windows 3.1 16bit EXE)
  146.   gs353w32.zip   (MS-Windows 3.1/Win32s or MS-Windows 95 or NT EXE)
  147.  If you do not already have a set of Type 1 fonts, you will
  148.  also need
  149.   gs353fn1.zip
  150.  
  151.  The following assumes that Ghostscript is to be installed on
  152.  drive d:.
  153.  Unzip the INI zip file and the required EXE zip files from the
  154.  root directory.  This should put the files into the directory d:\gs3.53.
  155.  
  156.  If you also need the fonts, change to the d:\gs3.53 directory and
  157.  then unzip gs353fn1.zip.  This will put font files into .\fonts.
  158.  To run Ghostscript, set the GS_LIB environment variable as follows
  159.   SET GS_LIB=d:\gs3.53;d:\gs3.53\fonts
  160.  then start the appropriate EXE.  To run Ghostscript without using
  161.  the environment variable, use the following command
  162.   d:\gs3.53\gs -Id:\gs3.53;d:\gs3.53\fonts
  163.  where the EXE name needs to be replaced with the appropriate name
  164.  (gs, gs386, gswin, gswin32 or gsos2).
  165.  
  166.  If you already have some Type 1 fonts, there are two ways to tell
  167.  Ghostscript about these fonts: editing/replacing the `Fontmap` file,
  168.  or the `GS_FONTPATH` environment variable.  See the Ghostscript
  169.  use.doc and the sample Fontmap files for details.
  170.  
  171.  See the `Include Path` and `Fonts` topics for more details.
  172. P
  173. 3Portable Document Format
  174. ?Portable Document Format
  175. ?PDF
  176.  GSview can display PDF files, although there are a number of problems
  177.  with the current method.  To enable display of PDF files with
  178.  Aladdin Ghostscript 3.33, copy the file pdf2dsc.ps from the GSview src 
  179.  directory (unzip src.zip) to the Ghostscript directory.  
  180.  With Aladdin Ghostscript 3.53 you do not need to do this because this
  181.  file is distributed with Aladdin Ghostscript 3.53.
  182.  When you open a PDF file, GSview will start up
  183.  Ghostscript and using pdf2dsc.ps will create a temporary DSC file which 
  184.  will contain commands to display pages of the PDF file.  GSview will
  185.  then start Ghostscript a second time to actually display the PDF file.
  186.  
  187.  Known problems with the current implemtentation are:
  188.  
  189.  - For long PDF files, GSview will take a long time to scan the PDF file.
  190.  Be patient.
  191.  
  192.  - Ghostscript is used twice, firstly to scan the PDF file, then a second
  193.  time to display the PDF file.  These two passes makes it take even longer.  
  194.  The GSview PDF code should eventually be rewritten to avoid using the 
  195.  temporary DSC file so that only one pass is needed. 
  196.  
  197.  - Zoom doesn't work for PDF files.  Attempting to use it will probably
  198.  cause GSview to crash with an out of memory error.
  199.  
  200.  - Doesn't sense if PDF file has been changed during display.
  201. E
  202. 3Include Path
  203. ?Include Path
  204.  Ghostscript needs to read some initialisation files during startup,
  205.  and needs to read font files before drawing text.
  206.  When used on a PC, it is normal to tell Ghostscript where to
  207.  find these files using the Ghostscript `-I` command line switch.
  208.  Alternatively, the `GS_LIB` environment variable can be used.
  209.  See below for details for Unix or VMS.
  210.  
  211.  The `-I` switch or `GS_LIB` environment variable contains a list of 
  212.  directories to search for the required initialisation files.
  213.  On a PC, it is normal to put the initialisation files in the
  214.  same directory as the Ghostscript program.  If Ghostscript is in
  215.  c:\gs, then `-Ic:\gs` would be used as a command line option to
  216.  Ghostscript.
  217.  
  218.  Ghostscript also needs to find font files.  The list of fonts known to
  219.  Ghostscript is contained in the `Fontmap` file.  The directories which
  220.  contain these fonts should be added to the `-I` switch.
  221.  If the Ghostscript *.gsf fonts are in c:\gs\fonts, and some other
  222.  *.pfb fonts are in c:\psfonts, then `-Ic:\gs;c:\gs\fonts;c:\psfonts`
  223.  would be used as a command line option to Ghostscript on a PC.
  224.  
  225.  Under Unix or VMS with Ghostview, the include path should have been
  226.  configured when Ghostscript was compiled.
  227.  If not,  and Ghostview is being used, use the `GS_LIB` environment
  228.  variable instead of `-I`.
  229.  The Ghostscript include files are generally not put in the same
  230.  directory as the executable under Unix.  Instead the executable
  231.  might be in
  232.   /usr/local/bin
  233.  while the include files are in
  234.   /usr/local/lib/ghostscript/gs3.53
  235.  and the fonts in
  236.   /usr/local/lib/ghostscript/fonts
  237.  Consequently, the `GS_LIB` environment variable would need to
  238.  be set to
  239.   /usr/local/lib/ghostscript/gs3.53:/usr/local/lib/ghostscript/fonts
  240.  It is to be hoped that these were set as the default when Ghostscript
  241.  was compiled, and that it is unnecessary to use `GS_LIB`.
  242.  
  243.  For more information, see the following topic.
  244. 4File searching
  245. ?File searching
  246.  (from Ghostscript use.doc)
  247.  
  248.  When looking for the initialisation files (gs_*.ps), the files related to
  249.  fonts (Fontmap, *.pfa, *.pfb, *.gsf), or the file for the 'run' operator,
  250.  Ghostscript first checks whether
  251.  the file name specifies an explicit directory or drive (i.e., doesn't begin
  252.  with '/' on Unix systems; doesn't contain a ':' or begin with a '/' or '\'
  253.  on MS-DOS systems; doesn't contain a ':' or a square bracket on VMS
  254.  systems).  If it does, Ghostscript simply tries to open the file using the
  255.  given name.  Otherwise, Ghostscript will try directories in the following
  256.  order:
  257.  
  258.  1. The directory/ies specified by the -I switch(es) in the command
  259.  line (see below), if any;
  260.  
  261.  2. The directory/ies specified by the GS_LIB environment variable,
  262.  if any;
  263.  
  264.  3. The directory/ies specified by the GS_LIB_DEFAULT macro in the
  265.  Ghostscript makefile, if any.
  266.  
  267.  Each of these (GS_LIB_DEFAULT, GS_LIB, and -I parameter) may be either a
  268.  single directory, or a list of directories separated by a character
  269.  appropriate for the operating system (':' on Unix systems, ';' on VMS
  270.  systems, ';' on MS-DOS systems).
  271.  Ghostscript 3.12 use.doc states that:
  272.   Note that Ghostscript does *not* attempt to open the file
  273.   in the current directory.  This is consistent with common
  274.   practice on Unix, but it is different from the usual 
  275.   practice on MS-DOS.
  276.  This is incorrect.  Ghostscript does search in the current directory.
  277. 3Fonts
  278. ?Fonts
  279.  Ghostscript locates fonts in two ways:
  280.  
  281.  1. Those listed explicitly in `Fontmap`
  282.  
  283.  2. Font files found in directories listed in the `GS_FONTPATH` environment
  284.  variable.
  285.  
  286.  Those listed in the `Fontmap` file should be locatable on the Ghostscript
  287.  include path, or should have fully qualified paths.  Note that
  288.  you must use / or \\ and must not use \ within a directory name.
  289.  
  290.  Ghostscript comes with a number of free fonts, most with a .gsf
  291.  extension.  These are ordinary Type 1 fonts (although they cannot
  292.  be used with Adobe Type Manager).  The Ghostscript fonts can be
  293.  broken into three main classes:
  294.  
  295.  1. Type 1 outline fonts with hinting (most *.pfa).  These produce
  296.  good quality output.  The standard Fontmap file uses these in
  297.  preference to the other font types.  There are relatively few of
  298.  these fonts.
  299.  
  300.  2. Type 1 outline fonts that have been created from bitmap fonts
  301.  (p*.gsf, z*.gsf, etc.).  These produce poor quality output.
  302.  Avoid them if at all possible.
  303.  A full set of the common 35 PostScript fonts is available.
  304.  
  305.  3. Type 1 stroked fonts created from the public domain Hershey fonts
  306.  (h*.gsf, h*.pfa).  These produce moderate quality output, but do
  307.  not correspond to standard PostScript fonts.
  308.  
  309.  If you have some other Type 1 outline fonts (*.pfa, *.pfb), it is
  310.  possible to use these with Ghostscript.  Whether or not you are
  311.  allowed to do this depends on the font licence.  If you do use
  312.  these fonts with Ghostscript, it is `your` responsibility to make
  313.  sure that the font licence permits this use.
  314.  To use the other Type 1 fonts, you will need to replace or edit
  315.  the `Fontmap` file.  The reason for using these other Type 1 fonts
  316.  is that they are almost certainly of better quality than the Type 1
  317.  bitmap derived fonts supplied with Ghostscript.  However, good
  318.  quality fonts are not usually free.
  319. 4Fontmap
  320. ?Fontmap
  321.  The `Fontmap` file tells Ghostscript what fonts are available
  322.  and where to find them.
  323.  Each line in `Fontmap` may be one of the following:
  324.  
  325.  1. A comment.  These are lines that start with a %
  326.     % fontmap aka Fontmap - standard font catalog for Ghostscript.
  327.  
  328.  
  329.  2. A font name and file name.  For example
  330.     /Courier                (ncrr.pfa)      ;
  331.     /Courier-Italic         (ncrri.pfa)     ;
  332.  The first of these lines says that the font name `Courier` is to
  333.  be found in the file `ncrr.pfa`.
  334.  The file `ncrr.pfa` must contain a font named Courier.
  335.  If the name is not Courier then a font alias must be used.
  336.  This is described later.
  337.  Note that the file name is a PostScript string and so \ has a 
  338.  special meaning.  
  339.  If `ncrr.pfa` was in the c:\gs\fonts directory, you would need to 
  340.  have `c:\gs\fonts` as one of the directories listed in the include path, 
  341.  or you would need to use the file name (c:/gs/fonts/ncrr.pfa) or
  342.  (c:\\gs\\fonts\\ncrr.pfa).  Using / is preferred to \\.
  343.  
  344.  3. A font alias. For example
  345.     /Courier-Oblique                /Courier-Italic         ;
  346.  This tells Ghostscript that if Courier-Oblique is requested,
  347.  Courier-Italic is to be used instead.
  348.  The standard Fontmap file uses aliases to replace poor quality
  349.  bitmap-derived fonts with good quality hinted outline fonts.
  350.  Ghostscript has a bitmap derived version of the Helvetica font
  351.  in the file phvr.gsf.  The Fontmap file could instruct Ghostscript
  352.  to use this with the following line:
  353.     /Helvetica                      (phvr.gsf)      ;
  354.  However, the NimbusSansL-Regular font looks like Helvetica and is
  355.  a better quality font, so the default Fontmap file actually uses
  356.     /Helvetica                      /NimbusSansL-Regular    ;
  357.     /NimbusSansL-Regular            (n019003l.gsf)  ;
  358.  
  359.  A description of the required formatting for each line is near
  360.  the top of each `Fontmap` file.
  361.  
  362.  Ghostscript comes with a number of alternate `Fontmap` files.
  363.  These include
  364.   Fontmap        The standard fontmap file
  365.   Fontmap.ATB    For Adobe Type Basics (65 Type 1 fonts)
  366.   Fontmap.ATM    For Adobe Type Manager (13 fonts)
  367.   Fontmap.OS2    For Type 1 fonts shipped with OS/2 (13 fonts)
  368.   Fontmap.OSF    For DEC OSF/1 systems
  369.   Fontmap.Ult    For DEC Ultrix systems
  370.   Fontmap.VMS    For VAX/VMS systems with DECwindows/Motif
  371.  If you want to use one of the alternate Fontmap files, the procedure
  372.  is as follows:
  373.  
  374.  1. Copy Fontmap to Fontmap.old
  375.  
  376.  2. Copy Fontmap.??? (your selected Fontmap file) to Fontmap
  377.  
  378.  3. Add the directory that contains the Type 1 fonts to the
  379.  include path (`-I` or `GS_LIB`)
  380. 4GS_FONTPATH
  381. ?GS_FONTPATH
  382.  (From Ghostscript use.doc)
  383.  
  384.  When Ghostscript starts up, it also looks at the `GS_FONTPATH` environment
  385.  variable, which is also a list of directories.  It goes to those
  386.  directories and looks for all files that appear to contain PostScript
  387.  fonts; it then effectively adds all those files and fonts to its internal
  388.  copy of the Fontmap (the catalog of fonts and the files that contain
  389.  them).  If you are using one of the following types of computer, you may
  390.  wish to set `GS_FONTPATH` to the indicated value so that Ghostscript will
  391.  automatically acquire all the installed Type 1 fonts:
  392.  
  393.     System type             GS_FONTPATH
  394.     -----------             -----------
  395.     AIX                     /usr/lpp/DPS/fonts/outlines
  396.     NeXT                    /NextLibrary/Fonts/outline
  397.     OSF/1                   /usr/lib/X11/fonts/Type1Adobe
  398.     Silicon Graphics        /usr/lib/DPS/outline/base
  399.     Sun (Solaris 2.3)       /usr/openwin/lib/X11/fonts/Type1/outline
  400.     Ultrix                  /usr/lib/DPS/outline/decwin
  401.  
  402.  See also `Fontmap`.
  403. 4Platform Fonts
  404. ?Platform Fonts
  405.  Platform fonts are described in Ghostscript fonts.doc.
  406.  
  407.  The bitmap derived fonts used by Ghostscript are of poor quality.  
  408.  The computer hosting Ghostscript may have the same fonts in better 
  409.  quality versions, either as scalable fonts (e.g. Type 1 or TrueType) 
  410.  or as bitmaps.
  411.  To improve the display of documents, Ghostscript can use these
  412.  `platform fonts` instead of using the low quality fonts.
  413.  
  414.  This can be illustrated with an example.  The default /Helvetica-Bold
  415.  font is phvb.gsf, an outline font derived from a bitmap.  When the
  416.  /Helvetica-Bold font is requested, phvb.gsf is read.  When a character
  417.  is to be rendered to the display, Ghostscript instead asks MS-Windows
  418.  for the Helvetica-Bold font at the appropriate size.  MS-Windows then
  419.  draws the requested character from the TrueType Arial Bold font, and
  420.  Ghostscript puts it on the display.  The resulting output is of better
  421.  quality than the /Helvetica-Bold bitmap derived font.
  422.  
  423.  In another example, the same request for /Helvetica-Bold under 
  424.  Unix/X11 might instead display characters using a prebuilt bitmap
  425.  font if one is available in the requested size.
  426.  
  427.  There are some limitations to using `Platform fonts`.
  428.  
  429.  1. Platform fonts are only used for upright (Portrait) characters.  
  430.  Rotated characters will be displayed using the original PostScript font.
  431.  
  432.  2. A PostScript version of the required font must be available.
  433.  This is needed to obtain character bounding box information,
  434.  encoding vector for character sets, and drawing rotated characters.
  435.  
  436.  3. Platform fonts may only used for a limited range of sizes.
  437.  For example, MS-Windows only uses platform fonts for 6 to 36 point
  438.  fonts.
  439.  
  440.  4. MS-Windows lies about the available font sizes.  Ghostscript asks for
  441.  a particular font size and MS-Windows returns a font that it claims
  442.  is the same size.  However MS-Windows may instead return a font
  443.  of a different size that it thinks will look better.  Often it
  444.  looks worse because the intercharacter spacing is out of proportion
  445.  to the character size.  If this happens, platform fonts can be
  446.  disabled by adding -dNOPLATFONTS to the Ghostscript Command Line.
  447.  
  448.  5. Platform fonts will only be used for the display.  Output to
  449.  printer devices will continue to use the PostScript font.
  450.  
  451.  MS-Windows Ghostscript has a fixed alias table for fonts.
  452.  In the table below, the name on the left is the name of the 
  453.  PostScript font, and the name on the right is the name that
  454.  Ghostscript will try if MS-Windows doesn't know the PostScript 
  455.  name.
  456.   Courier         Courier New
  457.   Helvetica       Arial
  458.   Helvetica       Helv
  459.   Times           Times New Roman
  460.   Times           Tms Rmn
  461.  
  462.  Platform fonts are not supported under OS/2.
  463.  
  464.  Not yet written:
  465.  Unix/X11 Ghostscript may have an ability to use Xresources to
  466.  specify font aliases.  If this is the case, then the method should
  467.  be described here.
  468. 2Document Structuring Conventions
  469. ?Document Structuring Conventions
  470. ?DSC
  471. ?Encapsulated PostScript
  472. ?EPSF
  473. ?EPS
  474.  Adobe has defined a set of extended comment conventions that provide
  475.  additional information about the page structure and resource
  476.  requirements of a PostScript file.
  477.  If a file contains these Document Structuring Convention (DSC) comments,
  478.  GSview can display pages in random order using `Goto Page` and display pages
  479.  in reverse order using `Previous Page`.  Selected pages can be extracted to
  480.  another file or printed.
  481.  
  482.  If a file does not contain DSC comments, GSview can only
  483.  display the pages in the original order.
  484.  
  485.  DSC conforming files start with the comment line:
  486.   %!PS-Adobe-3.0
  487.  where the number 3.0 may change and is the DSC version number.
  488.  Some programs write PostScript files with a control-D as the first
  489.  character of the file, followed by the comment line mentioned above.
  490.  GSview will correctly report that these files are not DSC conforming,
  491.  but will still display them with page selection features available.
  492.  Complain to the author of the program that produced the PostScript file.
  493.  To make the file DSC conforming, edit it to remove the control-D character.
  494.  
  495.  DSC conforming files contain lines such as:
  496.   %%Pages: 24
  497.   %%Page: 1 1
  498.  These lines tell GSview how many pages a document contains and
  499.  where they start.  GSview uses this information to select
  500.  individual pages.
  501.  
  502.  Encapsulated PostScript Files (EPSF) are single page documents
  503.  that contain a subset of the `DSC` comments and PostScript commands.
  504.  EPS files start with the comment line:
  505.   %!PS-Adobe-3.0 EPSF-3.0
  506.  EPS files are commonly used for inclusion in other documents and
  507.  for this reason require the bounding box comment:
  508.    %%BoundingBox: llx lly urx ury
  509.  where llx, lly, urx and ury are integers giving the x and y coordinates
  510.  of the lower left and upper right corners of a bounding box which encloses
  511.  all marks made on the page.
  512.  
  513.  Some EPS files contain a preview of the PostScript document.
  514.  This preview can be a Windows Metafile, a TIFF file, or an Interchange
  515.  preview (EPSI format).
  516.  For the Windows Metafile or TIFF file preview, the EPS file under DOS
  517.  contains a binary header which specifies the location and lengths of
  518.  the preview and PostScript language sections of the EPS file.
  519.  For the Interchange format, the preview is contained in DSC comments
  520.  starting with
  521.   %%BeginPreview: width height depth lines
  522.  An EPS file with a preview can be created from an EPS file without a
  523.  preview using `Add EPS Preview`.
  524. 2Opening a Document
  525. ?File
  526. ?Open
  527. ?Select File
  528. ?Save As
  529. ?Extract
  530. ?Close
  531.  The `Open` command on the `File` menu opens a file and displays
  532.  the first page.
  533.  
  534.  If the file contains `DSC` comments, pages can be selected using
  535.  `Next Page`, `Previous Page` and `Goto Page`.
  536.  
  537.  If the file does not contain `DSC` comments, `Previous Page` and `Goto Page`
  538.  will not work.  Another file should not be selected until a last page of
  539.  the file has been displayed.
  540.  
  541.  When a file is open, GSview will display the document filename,
  542.  the current page (if available) and while the cursor is over
  543.  the image, the location of the cursor in coordinates specified
  544.  by `Options` | `Units`.  The coordinate can be PostScript points
  545.  (1/72"), millimetres or inches.
  546.  The cursor location is useful for calculating bounding boxes.
  547.  
  548.  The `Select File` command is similar to `Open` but it does not display
  549.  the document.
  550.  This command is useful for opening a document prior to printing it.
  551.  
  552.  The `Save As` command saves a copy of the current document.
  553.  This is useful if GSview is being used as a PostScript viewer by
  554.  another application and you wish to save the currently displayed file.
  555.  
  556.  `Extract` allows a range of pages to be copied from the current
  557.  document to a new document.  For example, ten pages can be extracted
  558.  from the middle of the current document and written to another file,
  559.  which will later be sent to a printer.
  560.  
  561.  The `Close` command closes the currently open document.
  562.  This should be used before the current file is changed by another
  563.  program.
  564.  If you do not do this and GSview detects that the file length or date
  565.  have changed, it will close Ghostscript and rescan the document.
  566.  
  567.  See also `Print`.
  568. 3PS to EPS
  569. ?PS to EPS
  570.  In general, it is not possible to convert a PostScript file to `EPS`.
  571.  However, many single page PostScript files can be converted to `EPS`
  572.  by changing the first line of the file to
  573.   %!PS-Adobe-3.0 EPSF-3.0
  574.  and then adding or fixing up the `%%BoundingBox` comment.
  575.  
  576.  `When used incorrectly, the PS to EPS command can produce PostScript
  577.  files with incorrect DSC comments.  Such a document will cause problems
  578.  when you try to include it inside another document.`
  579.  
  580.  To convert a PostScript file to `EPS`, the original file `must` be
  581.  a `single page` document.  If the document contains `DSC` comments
  582.  and is multi page, extract the desired page with `File` | `Extract`.
  583.  If the document does not contain `DSC` comments, you will need to
  584.  edit the file by hand to extract the desired page.
  585.  
  586.  `EPS` documents `must not` use any of the following operators:
  587.   banddevice   clear         cleardictstack  copypage
  588.   erasepage    exitserver    framedevice     grestoreall
  589.   initclip     initgraphics  initmatrix      quit
  590.   renderbands  setglobal     setpagedevice   setpageparams
  591.   setshared    startjob      letter          note
  592.   legal        a3            a4              a5
  593.  
  594.  The following operators should be used with care:
  595.   nulldevice   setgstate     sethalftone    setmatrix
  596.   setscreen    settransfer   setcolortransfer
  597.  
  598.  It is `your` responsibility to make sure that the above requirements
  599.  are met.
  600.  
  601.  To test if a document contains any of the above operators, select
  602.  `Options` | `EPS Warn` and then `Open` the desired document.
  603.  After the page has been displayed, look in the Ghostscript text window.
  604.  If any of the above operators have been used you should see lines like:
  605.   Warning: EPS files must not use ...
  606.  If you find these warnings then do `not` use `PS to EPS`.
  607.  Remember to turn off `EPS Warn` afterwards.
  608.  
  609.  A document must be displayed before `PS to EPS` is used.
  610.  The document must contain a `showpage`.
  611.  This is required so that the bounding box can be measured.
  612.  
  613.  For documents without `DSC` comments, `PS to EPS` allows a bounding
  614.  box to be specified, then writes out an `EPS` file consisting of
  615.  an `EPS` wrapper around the original document.
  616.  
  617.  For documents with `DSC` comments, `PS to EPS` will change the
  618.  first line of the file to
  619.   %!PS-Adobe-3.0 EPSF-3.0
  620.  then allows the `%%BoundingBox` comment to be changed or added.
  621.  
  622.  For `EPS` documents, `PS to EPS` allows the `%%BoundingBox` comment to
  623.  be changed.
  624.  
  625.  `PS to EPS` does not clip the document to the `%%BoundingBox`.
  626.  To do so would require changing the PostScript code itself.
  627.  `PS to EPS` only changes the `DSC` comments.
  628.  
  629.  `PS to EPS` does not add a preview to a document.
  630.  If you want a preview you add it with `Edit` | `Add EPS Preview` after
  631.  first creating an `EPS` file with a correct `%%BoundingBox`.
  632.  
  633.  See also `Add EPS Preview`, `Extract`, `EPS Warn`.
  634. 2Page Selection
  635. ?Page Selection
  636. ?Next Page
  637. ?Previous Page
  638. ?Redisplay
  639. ?Goto Page
  640. ?View
  641.  `View` | `Next Page` or the `+` button moves to the next page of a 
  642.  document.
  643.  This works even if the document does not contain `DSC` comments.
  644.  
  645.  `View` | `Previous Page` or the `-` button moves to the previous page.
  646.  
  647.  `View` | `Redisplay` redisplays the current page.
  648.  
  649.  `View` | `Goto Page` or the `pointing hand` button shows a dialog box 
  650.  which allows selection of the next page number to display.  
  651.  The `Select Page` dialog box shows page labels since these are likely 
  652.  to be more useful than a sequential page number.
  653.  
  654.  The `Previous Page`, `Redisplay` and `Goto Page` commands work only if the
  655.  document contains `DSC` comments.
  656. 2Zoom
  657. ?Zoom
  658.  To enlarge a displayed feature, position the cross-hair mouse pointer
  659.  over the feature then press the right mouse button.
  660.  The window will swap from normal display resolution to zoom
  661.  resolution and the status line will have the word `Zoomed` appended to it.
  662.  The zoomed feature will be in the centre of the window.
  663.  To cancel `Zoom`, press the right mouse button again or select
  664.  any command that redraws the page (e.g. `Redisplay`, `Next Page`).
  665.  By default the zoom resolution is 300 dots per inch but this can
  666.  be changed with the `Media` | `Zoom Resolution` command.
  667.  
  668.  `Zoom` will only work for `DSC` conforming documents.
  669. 2Document Information
  670. ?Info
  671.  A brief information area at the top of the window is used by
  672.  GSview to display the document filename, the current page number
  673.  and label (if available) and while the cursor is over the image, the
  674.  location of the cursor in coordinates specified by `Options` | `Units`.
  675.  The cursor location is useful for calculating bounding boxes.
  676.  
  677.  The `Info` command on the `File `menu shows a dialog box with the
  678.  following information about the `DSC` comments in the current document.
  679.  
  680.  `File `is the full pathname to the document.
  681.  
  682.  `Type` is` DSC`,` EPS`, `No DSC comments` or 'Ignoring DSC Comments'.
  683.  `EPS` is an Encapsulated PostScript File - a single page document
  684.  that contains a subset of the `DSC` comments and PostScript commands.
  685.  `EPS `files are commonly used for inclusion in other documents.
  686.  `Ignoring DSC Comments` is displayed if `Options` | `Ignore DSC`
  687.  is selected.
  688.  
  689.  `Title` is a text title that can be used when printing banner
  690.  pages and for routing or recognising documents.
  691.  
  692.  `Date` is the time the document was created.
  693.  
  694.  `BoundingBox` specifies a box that encloses all the marks painted
  695.  on the page.  The four integer values are the coordinates of the
  696.  lower left and upper right corners of the bounding box in default
  697.  user coordinates (1/72 inch).
  698.  
  699.  `Orientation `is either `Portrait `or` Landscape`.
  700.  
  701.  `Default Media` gives the media name followed by the width and
  702.  height of that media in default user coordinates (1/72 inch).
  703.  
  704.  `Page Order` is either `Ascending`, `Descending` or `Special`
  705.  
  706.  `Pages` is the total number of pages in the document.
  707.  
  708.  `Page` gives the page label and page number.
  709.  
  710.  `Bitmap `is the size of the display bitmap in pixels which may be
  711.  useful if you are copying the displayed image to the clipboard.
  712. 2Printing
  713. ?Print
  714. ?Print To File
  715. ?Print File
  716.  The `Print` command on the `File `menu allows printing of the document
  717.  using Ghostscript.
  718.  A `Printer Setup` dialog box allows selection of 
  719.  the Ghostscript printer driver and resolution, the page range
  720.  and the `Spooler` output.
  721.  
  722.  All pages, individual pages or any combination may be printed.
  723.  The `All`, `Odd` and `Even` buttons provide quick selection of pages.
  724.  
  725. W
  726.  The `mswinpr2` printer driver uses the windows printer drivers
  727.  and should work with any printer with raster capabilities.
  728.  Printer resolution cannot be selected from within GSview; use
  729.  the Control Panel instead.  
  730.  
  731.  The `mswinprn` printer driver is an older version of `mswinpr2`
  732.  and may not still work.  This driver is very slow and should
  733.  be considered a last resort if no other Ghostscript printer
  734.  driver is available.
  735.  
  736.  With all other printer drivers, Ghostscript sends the output direct
  737.  to the printer, without passing through a Windows printer driver.
  738.  If you have trouble printing you may have to `Print To File`
  739.  and then `Print File` or use the DOS command `COPY /B FILENAME PRN`.
  740.  
  741.  The Win32 versions of GSview and Ghostscript can't send output
  742.  directly to a printer port so an attempt is made to pass the output
  743.  unchanged through a Windows printer driver.  This does not work
  744.  with some Windows printer drivers.  Use 'Print To File' if you
  745.  have problems.
  746. E
  747.  
  748.  This list of available devices and resolutions is stored in the
  749.  [Devices] section of
  750. W
  751.  gsview.ini (or gsview32.ini for gsview32.exe).
  752. P
  753.  gvpm.ini.
  754. E
  755.  The default list of devices and resolutions is taken from the
  756.  standard distribution version of Ghostscript 3.33 and may not
  757.  be complete.
  758.  
  759.  To print a document without displaying it, open the document
  760.  using `Select File`.
  761.  
  762.  `Print To File` is similar to the `Print` command except that Ghostscript
  763.  will write the output to a file instead of sending it to a printer.
  764.  
  765.  If you want to produce a bitmap, some useful drivers are
  766.  `bmpmono`, `bmp16`, `bmp16m` and `bmp256`.
  767.  
  768.  `Print File` sends a file to a local port, bypassing the
  769. W
  770.  Windows
  771. P
  772.  Presentation Manager
  773. E
  774.  printer drivers.
  775.  This is useful for sending a document to a PostScript printer,
  776.  or for sending an output file produced by Ghostscript to a printer.
  777. 3Spooler
  778. ?Spooler
  779.  The
  780. P
  781.  `Printer Setup` dialog box prompts you for the name of a printer queue
  782.  to which output should be sent.
  783.  This queue will be saved and will be the default selection next time.
  784. W
  785.  `Select Printer Port` or `Select Printer` dialog box prompts you for the
  786.  name of a printer queue or port to which output should be sent.
  787.  This queue or port will be saved and will be the default selection
  788.  next time.
  789.  
  790.  Under Windows 3.1, a port name is used.  Output will be spooled for
  791.  this port.
  792.  
  793.  Under Windows 3.1 / Win32s, a port name is used.  Output will be
  794.  written directly to this port.  The spooler is not used.
  795.  
  796.  Under Windows 95 or NT, a printer queue name is used.
  797.  At present this must be a local queue.
  798. E
  799.  
  800.  See also `Print`
  801. 3Properties
  802. ?Properties
  803.  The `Printer Setup` dialog box has a `Properties` button which
  804.  allows some printer drivers to configure extra properties and
  805.  a page offset to be specified.
  806.  
  807.  A page offset can be specified for each printer.  This will
  808.  only work if `Ghostscript Version` is set to 3.51 or later.
  809.  The page offset is useful for correcting a mismatch between the page
  810.  origin of a Ghostscript printer device and a particular printer.
  811.  Increasing the X value will translate the image towards the right.
  812.  Increasing the Y value will translate the image downwards.
  813.  
  814.  `Properties` are typically used to set BitsPerPixel for a colour 
  815.  printer or other types of colour or density correction.
  816.  
  817.  `Properties` are specific to a particular printer.  Changing
  818.  the value of the `BitsPerPixel` property on one printer does not 
  819.  change it for any other printer.
  820.  
  821.  When you press the `OK` button in the `Properties` dialog
  822.  box, the current settings are written to the
  823. W
  824.  gsview.ini (or gsview32.ini for gsview32.exe)
  825. P
  826.  gvpm.ini
  827. E
  828.  file.
  829.  
  830.  No `Properties` are predefined in GSview.  The `Edit` and `New`
  831.  buttons allow you to modify available `Properties` for that printer.
  832.  See the `Edit Properties` topic for more details.
  833. 4Edit Properties
  834. ?Edit Properties
  835.  Not every printer supports the use of optional `Properties`.  To find
  836.  out which printers support `Properties` and which `Properties` are
  837.  recognised by each printer, read the Ghostscript
  838.  file devices.doc or look at the Ghostscript source code.
  839.  
  840.  There are two ways to add or edit `Properties`.
  841.  
  842.  The first method uses the `Edit` or `New` button on the `Properties` 
  843.  dialog box.
  844.  
  845.  Each property must be either a number or a string.  Number properties
  846.  are equivalent to the Ghostscript `-d` command line option.  String 
  847.  properties are equivalent to the Ghostscript `-s` command line option.
  848.  Each property consists of a `Name` and `Value`.  These are used as 
  849.  `-dNAME=VALUE` or `-sNAME=VALUE`.
  850.  The `Value` is chosen from the comma separated list of `Values`
  851.  entered into the `Edit Properties` dialog box.  Spaces must not
  852.  be embedded in the `Name` or `Values`.
  853.  
  854.  To delete a property, select it on the `Properties` dialog box,
  855.  then press `Edit`, then press the `Delete` button on the `Edit Properties`
  856.  dialog box.
  857.  
  858.  The second method is to manually edit the GSview INI file.
  859.  
  860.  For each printer, you must add two sections to the
  861. W
  862.  gsview.ini (or gsview32.ini for gsview32.exe)
  863. P
  864.  gvpm.ini
  865. E
  866.  file.  
  867.  The following example shows how to add property information
  868.  for the cdjcolor driver.
  869.  First add a section which gives the current values.
  870.  This section, after the first character is removed, gives the options
  871.  that will appear in the `Property` list box.
  872.  The first character is `s` for string or `d` for number.
  873.   [cdjcolor]
  874.   dBitsPerPixel=24
  875.   dDepletion=1
  876.   dShingling=2
  877.   dBlackCorrect=4
  878.  
  879.  Next add a section which gives the values to display in the
  880.  `Value` list box.
  881.   [cdjcolor values]
  882.   dBitsPerPixel=1,3,8,16,24
  883.   dDepletion=1,2,3
  884.   dShingling=0,1,2
  885.   dBlackCorrect=0,1,2,3,4,5,6,7,8,9
  886.  GSview will also add the value `[Not defined]` to the listbox.
  887.  
  888.  When GSview prints a file, it will give Ghostscript the contents
  889.  of the [cdjcolor] section of
  890. W
  891.  gsview.ini (or gsview32.ini for gsview32.exe)
  892. P
  893.  gvpm.ini
  894. E
  895.  as follows:
  896.   -dBitsPerPixel=24 -dDepletion=1 -dShingling=2 -dBlackCorrect=3
  897.  If the value of a property is `[Not defined]`, that property will
  898.  not be sent to Ghostscript.
  899.  
  900.  Some entries for the cdj family of drivers are supplied in the
  901.  property.ini file that comes with GSview.
  902. 2Text Extract and Find
  903. ?Text Extract and Find
  904. ?Text
  905. ?Text Extract
  906. ?Search
  907. ?Find
  908. ?Find Next
  909.  In general, extracting text from a PostScript document is not a
  910.  trivial operation.  Words may be broken.  Text may be encoded.
  911.  Ligatures may be used (e.g replacing 'fi' with a single character).
  912.  There may be no relationship between the location of a word in
  913.  the PostScript file and its location on the page.
  914.  
  915.  However, it is common for PostScript documents to contain text in the
  916.  same order as it appears on the page, and for it to be given in
  917.  PostScript strings, surrounded by parentheses.  Complete lines
  918.  may be given in one string, or one word per string.  For this sort
  919.  of document, extracting text can be done with reasonable success.
  920.  
  921.  `Edit` | `Text Extract` will extract text contained in strings from
  922.  specified pages and write it to a text file.
  923.  Line breaks in this text file correspond to lines in the document.
  924.  Spaces in the text file correspond to spaces within strings, or to
  925.  separate strings.  A more effective method of extracting text is to
  926.  use ps2ascii.ps supplied with Ghostscript.
  927.  
  928.  `Edit` | `Find` will search for text and display the first
  929.  page that contains the text.  `Find` asks for a search text
  930.  and a range of pages in which to search.
  931.  The preceeding comments about extracting text from a PostScript
  932.  document should be noted.  `Find` first extracts text from
  933.  the document, then searches it ignoring all spaces in both the
  934.  document and the search text.  Case is ignored when searching.
  935.  Consequently the search text `these` would match both `These`
  936.  and `The serial`.  No information is given about where the word
  937.  is located on a given page because this information is not
  938.  available without a complete PostScript interpreter.
  939.  
  940.  `Edit` | `Find Next` will continue the search from the next page.
  941. 2Clipboard
  942. ?Clipboard
  943. ?Edit
  944. ?Copy
  945. ?Paste To
  946. ?Convert Bitmap
  947. ?Bitmap
  948. ?Add EPS Preview
  949. ?Extract EPS
  950.  The GSview window can be copied to the Clipboard as a bitmap
  951.  by selecting `Copy` from the `Edit` menu.
  952. W
  953.  The bitmap may be a Device Independent Bitmap or it may be a Device
  954.  Dependent Bitmap, depending on how Ghostscript was compiled.
  955.  The default for Ghostscript 3.53 is a Device Independent Bitmap
  956.  (BMP format).
  957. E
  958.  
  959.  An alternative way to get a bitmap output from Ghostscript is
  960.  to use one of the BMP drivers.  See `Print`.
  961.  
  962. W
  963.  `Paste To` copies a Device Independent Bitmap from the Clipboard
  964.  (if available) to a BMP file.
  965.  
  966.  `Convert Bitmap` converts between a Device Independent Bitmap and
  967.  a Device Dependent Bitmap.
  968.  If the clipboard contains a Device Independent Bitmap (BMP format),
  969.  this is converted to a Device Dependent Bitmap and added to the clipboard.
  970.  If the clipboard does not contain a colour palette, one is created
  971.  from the Device Independent Bitmap and added to the clipboard.
  972.  This option is present because some applications (notably Windows
  973.  Paintbrush) won't recognise a Device Independent Bitmap in the clipboard.
  974. P
  975.  `Paste To` copies the currently displayed image (if available)
  976.  to a BMP file.
  977. E
  978.  
  979.  `Add EPS Preview` takes a bitmap from the
  980. W
  981.  clipboard
  982. P
  983.  display
  984. E
  985.  and uses it to add a preview to an EPS file.
  986.  `Add EPS Preview` can create a DOS EPS file with a
  987. W
  988.  Windows Metafile or
  989. E
  990.  TIFF preview, or an EPSI file with an Interchange preview.
  991.  To use the `Add EPS Preview` command the following steps must be followed.
  992.  
  993.  1. Make sure the document has a correct bounding box.
  994.  A bounding box can be added or changed using `File` | `PS to EPS`.
  995.  
  996.  2. Select `Orientation` | `Portrait`.
  997.  
  998.  3. Select `Options` | `EPS Clip`.
  999.  This will cause Ghostscript to use a display window the size of the
  1000.  bounding box instead of the page size.
  1001.  
  1002.  4. Select `Media` | `Resolution` and set a suitable resolution
  1003.  for the preview.  If the resolution is too high
  1004. W
  1005.  the bitmap may not fit in the clipboard, or will
  1006. P
  1007.  it
  1008. E
  1009.  make the EPS file excessively large.
  1010.  
  1011.  5. `Open` an EPS file that does not contain a preview.
  1012.  
  1013. W
  1014.  6. Select `Edit` | `Copy`.  This tells Ghostscript to copy the
  1015.  display bitmap to the Clipboard.  This allows GSview to access
  1016.  the bitmap in the next step.
  1017.  
  1018.  7.
  1019. P
  1020.  6.
  1021. E
  1022.  Select `Edit` | `Add EPS Preview`, then the preview format,
  1023.  then the new EPS filename.  GSview will write a new file containing
  1024.  the original PostScript EPS file and a preview created from the
  1025. W
  1026.  bitmap in the clipboard.
  1027. P
  1028.  display bitmap.
  1029. E
  1030.  The available preview formats are `Interchange`,
  1031. W
  1032.  `TIFF 4`, `TIFF 5` and `Windows Metafile`.
  1033. P
  1034.  `TIFF 4` and `TIFF 5`.
  1035. E
  1036.  If adding an Interchange preview, the document must have an `%%EndComments`
  1037.  line, otherwise GSview may put the preview in the wrong place.
  1038.  A TIFF 5 preview is a Class B image with no compression as described
  1039.  in Appendix G of the TIFF 5.0 memorandum.  A TIFF 4 preview is almost
  1040.  identical to the TIFF 5 preview, but avoids using tags which are not
  1041.  described in the TIFF 4 specifiation.
  1042.  WordPerfect 5.1 requires a TIFF 4 preview.
  1043.  
  1044. W
  1045.  8.
  1046. P
  1047.  7.
  1048. E
  1049.  Reset `Orientation` | `Portrait`, `Options` | `EPS Clip`
  1050.  and `Media` | `Resolution` to their previous values.
  1051.  
  1052.  To extract the PostScript or Preview section from a DOS EPS
  1053.  file, use `File` | `Select File` followed by `Edit` | `Extract EPS`
  1054.  then `PostScript` or `Preview`.
  1055.  
  1056.  See also `PS to EPS`.
  1057. 2Options
  1058. ?Options
  1059.  The `Options` menu has the following selections:
  1060. 3Ghostscript Command
  1061. ?Ghostscript Command
  1062.  The `Ghostscript Command` option allows selection of the command
  1063.  to use when executing Ghostscript.
  1064.  A default will be constructed using the GSview path and
  1065.  will look like:
  1066. W
  1067.   gswin -Ic:\gs;c:\gs\fonts
  1068. P
  1069.   gsos2.exe -Ic:\gs;c:\gs\fonts;c:\psfonts
  1070. E
  1071.  GSview will first attempt to find Ghostscript in the GSview
  1072.  directory and then will try the PATH.
  1073.  If GSview still cannot find Ghostscript, use this option to
  1074.  set the full pathname to Ghostscript.
  1075.  If you wish to specify that Ghostscript should look for its
  1076.  initialisation files in a different place, modify the -I option.
  1077. W
  1078.  Try to keep the command length short, otherwise GSview will
  1079.  have trouble printing files with Ghostscript.
  1080. E
  1081.  Only the Ghostscript EXE and include path may be specified -
  1082.  other items will confuse GSview.
  1083. 3Ghostscript Version
  1084. ?Ghostscript Version
  1085.  GSview is best used with Ghostscript version 3.53 or later.
  1086.  
  1087. W
  1088.  The 16-bit version of GSview can be used with the 16-bit
  1089.  Ghostscript 2.6.1 by setting this option to `Ghostscript 2.6.1`.
  1090.  
  1091. E
  1092.  The default is `Ghostscript 3.51 or later`.
  1093.  
  1094.  See `Common Problems` for a description of what happens if you
  1095.  set the `Ghostscript Version` to the wrong setting.
  1096. P
  1097. 3Draw Method
  1098. ?Draw Method
  1099.  A number of buggy display drivers have been written for OS/2.
  1100.  Many of these have a non-functional GpiDrawBits() API.
  1101.  The default `Draw Method` is to use GpiDrawBits() for most
  1102.  displays, and a slower double buffering method using
  1103.  WinDrawBitmap for VGA (4bit/pixel) displays.
  1104.  
  1105.  If your display has problems drawing the bitmap (usually
  1106.  seen during scrolling) or a SYS3175 (memory access violation)
  1107.  occurs in the display driver, then try explicitly using the
  1108.  GpiDrawBits or WinDrawBitmap method.
  1109.  
  1110.  If you have bugs in your display driver, please complain to
  1111.  the company that wrote it.
  1112. E
  1113. 3Sounds
  1114. ?Sounds
  1115.  The `Sounds` option assigns sounds to various events.
  1116.  For each event the sound can be set to `None`, a `Speaker Beep` or
  1117.  a `Wave` file.
  1118.  
  1119.  You must have a sound driver loaded before using Wave files.
  1120.  Wave file sounds are not available under MS-Windows 3.0.
  1121.  
  1122.  The events are:
  1123.  
  1124.  `Output Page`: the PostScript showpage operator was executed.
  1125.  
  1126.  `No Page`: an invalid page was selected.
  1127.  For example, pressing `Prev` while on the first page of a document
  1128.  with `DSC` comments.
  1129.  
  1130.  `No Number`: a command required page numbering and the document did
  1131.  not have page numbering.
  1132.  For example, pressing `Goto Page` when viewing a document without
  1133.  `DSC` comments.
  1134.  
  1135.  `Not Open`:  a command required a document to be open and this was
  1136.  not the case.
  1137.  For example, pressing `Goto Page` when no document is open.
  1138.  
  1139.  `Error`: many types of errors.
  1140.  
  1141.  `Timeout`: no response from Ghostscript within a timeout period.
  1142.  For example, display snowflak.ps on a PC with a 286-12 CPU.
  1143.  
  1144.  `Start`: GSview opened.
  1145.  
  1146.  `Exit`: GSview closed.
  1147.  
  1148.  The defaults are for `No Page` and `Error` to be a `Speaker Beep`
  1149.  and all other events to be `None`.
  1150. 3Units
  1151. ?Units
  1152.  The `Units` option sets the units used to display the cursor location
  1153.  on the status bar.  Available units are PostScript points (`pt` = 1/72"),
  1154.  millimetres (`mm`) and inches (`in`).
  1155.  The default is `pt`.
  1156. 3Save Settings
  1157. ?Save Settings
  1158. ?Save Settings Now
  1159. ?Save Settings on Exit
  1160. ?Settings
  1161. ?INI file
  1162.  The `Save Settings Now` option saves the GSview window position,
  1163.  window size, last used printer, last directory,
  1164.  `Sounds`, `Units`, `Save Last Directory`,
  1165.  `User Defined`, `Ghostscript Command`, `Button Bar`,
  1166. P
  1167.  `Fit Window To Page`,
  1168. E
  1169.  `Quick Open`, `Auto Redisplay`, `EPS Clip`, `EPS Warn`, `Ignore DSC`,
  1170. P
  1171.  `Show Bounding Box`,
  1172. E
  1173.  `Depth`, `Orientation`, `Media`, `Resolution` 
  1174.  and `Zoom Resolution` options to the initialisation file
  1175. W
  1176.  gsview.ini (or gsview32.ini for gsview32.exe) in the Windows system 
  1177.  directory.
  1178. P
  1179.  gvpm.ini in the OS/2 system directory.
  1180. E
  1181.  GSview reads this file during startup.
  1182.  
  1183.  When the `Save Settings on Exit` option is checked, GSview will
  1184.  automatically save the above settings when you quit GSview.
  1185. 3Safer
  1186. ?Safer
  1187.  When the `Safer` option is `checked`, GSview will give Ghostscript
  1188.  the `-dSAFER` flag, which disables the deletefile and renamefile operators,
  1189.  and the ability to open files in any mode other than read-only.
  1190.  This is the default.
  1191.  
  1192.  When the `Safer` option is `unchecked` Ghostscript can change
  1193.  files.
  1194. 3Save Last Directory
  1195. ?Save Last Directory
  1196.  When the `Save Last Directory` option is `checked`, GSview will
  1197.  save the current directory when you quit GSview.  When GSview
  1198.  is started next, this will be made the current directory.
  1199.  This is the default.
  1200.  
  1201.  When `Save Last Directory` option is `unchecked`, the current
  1202.  directory when GSview is started will be the directory where
  1203.  GSview is located, or the working directory specified by
  1204.  the Program Manager.
  1205. 3Button Bar
  1206. ?Button Bar
  1207. ?Magnify
  1208.  When the `Button Bar` option is `checked`, GSview will display
  1209.  a Button Bar down the left side of the window.  This is the default.
  1210.  The Button Bar contains the following items in order from top to
  1211.  bottom:
  1212.  
  1213.  `File` | `Open`
  1214.  
  1215.  `File` | `Print`
  1216.  
  1217.  `File` | `Info`
  1218.  
  1219.  `Help` | `Contents`
  1220.  
  1221.  `View` | `Goto Page`
  1222.  
  1223.  `View` | `Next Page`
  1224.  
  1225.  `View` | `Previous Page`
  1226.  
  1227.  `Go forward 5 pages`
  1228.  
  1229.  `Go back 5 pages`
  1230.  
  1231.  `Increase resolution by 1.2`
  1232.  
  1233.  `Decrease resolution by 1/1.2`
  1234.  
  1235.  `Edit` | `Find`
  1236.  
  1237.  `Edit` | `Find Next`
  1238.  
  1239.  If using the increase/decrease resolution buttons, `Auto Redisplay`
  1240.  should be set.  Instead of using these buttons, it is also possible
  1241.  to use the `Media` | `Resolution` command.
  1242.  When the `Button Bar` option is `unchecked`, GSview will not
  1243.  display the Button Bar.
  1244. P
  1245. 3Fit Window To Page
  1246. ?Fit Window To Page
  1247.  When the `Fit Window To Page` option is `checked`, GSview will
  1248.  shrink the window size so that it is no larger than the page
  1249.  being displayed.  This is the default.
  1250.  
  1251.  If `Fit Window To Page` is `unchecked`, GSview will not resize the
  1252.  window and areas outside the page will be drawn in light grey.
  1253.  This is useful if you do not wish the window to shrink when looking
  1254.  at pages at low resolution.
  1255. E
  1256. 3Quick Open
  1257. ?Quick Open
  1258.  When the `Quick Open` option is `checked`, GSview will not reload
  1259.  Ghostscript before every document, making opening of documents quicker.
  1260.  
  1261.  GSview tries to preserve the Ghostscript state between documents,
  1262.  but a document may still leave the Ghostscript interpreter in an unusual
  1263.  state or cause an error.  If an error occurs, Ghostscript will close.
  1264.  Error messages are displayed in the Ghostscript window.
  1265.  Select `Redisplay` to reopen the document.
  1266.  
  1267.  If `Quick Open` is `unchecked`, GSview will close Ghostscript and
  1268.  restart it before each new document or whenever the page orientation,
  1269.  resolution or size is changed.
  1270. 3Auto Redisplay
  1271. ?Auto Redisplay
  1272.  When the `Auto Redisplay` option is `checked`, GSview will
  1273.  redisplay `DSC` documents when the `Orientation`, `Resolution`,
  1274.  `Depth` or `Media` are changed.
  1275.  This is the default.
  1276.  
  1277.  If `Auto Redisplay` is `unchecked`, the `View` | `Redisplay` command
  1278.  must be used to redisplay a document after changing the
  1279.  `Orientation`, `Resolution`, `Depth` or `Media`.
  1280. 3EPS Clip
  1281. ?EPS Clip
  1282.  When the `EPS Clip` option is `checked`, GSview will clip the
  1283.  display bitmap to the bounding box of an EPS file instead of using the
  1284.  page size specified on the `Media` menu.  This is useful when
  1285.  adding a bitmap preview to an EPS file.
  1286.  
  1287.  If `EPS Clip` is `unchecked`, GSview will use the page size
  1288.  specified on the `Media` menu for EPS files.  This is the default.
  1289.  
  1290.  `EPS Clip` does not alter the original document, it only affects
  1291.  how much of the document is displayed by GSview.
  1292.  `EPS Clip` will only work in Portrait orientation.
  1293.  
  1294.  See also `Clipboard` | `Add EPS Preview`
  1295. 3EPS Warn
  1296. ?EPS Warn
  1297.  When the `EPS Warn` option is `checked`, GSview will write a
  1298.  prolog to Ghostscript when each file is opened.  This prolog will
  1299.  produce warning messages in the Ghostscript text window if any
  1300.  PostScript operators that should not be used in `EPS` files
  1301.  are used.  An example warning message is:
  1302.   Warning: EPS files must not use /initgraphics
  1303.  `EPS Warn` is not infallible.  It is possible to access restricted
  1304.  operators without `EPS Warn` producing a warning.
  1305.  
  1306.  The default for `EPS Warn` is `unchecked`.
  1307.  
  1308.  See also `PS to EPS`.
  1309. 3Ignore DSC
  1310. ?Ignore DSC
  1311.  Some documents incorrectly claim to conform to the Adobe Document
  1312.  Structuring Conventions.  Attempting to display one of these bogus
  1313.  documents will probably leave GSview horribly confused and unable
  1314.  to display the document.  If `Ignore DSC` is `checked`, GSview
  1315.  will treat the document as if it does not contain DSC comments
  1316.  and will only display the pages in the original order.
  1317.  
  1318.  The default for `Ignore DSC` is `unchecked`.
  1319. P
  1320. 3Show Bounding Box
  1321. ?Show Bounding Box
  1322.  Selecting this option causes a dashed rectangle to drawn over
  1323.  the image, showing the location of the bounding box.
  1324.  This bounding box is only drawn on the display, and does not
  1325.  affect printer output.
  1326.  The bounding box will only be shown for `DSC` documents (non
  1327.  conforming documents don't have a bounding box).
  1328.  
  1329.  The default for `Show Bounding Box` is `unchecked`.
  1330. E
  1331. 2Page Orientation
  1332. ?Orientation
  1333. ?Portrait
  1334. ?Landscape
  1335. ?Upside-down
  1336. ?Seascape
  1337. ?Swap Landscape
  1338.  The `Portrait`, `Landscape`, `Upside-down` and `Seascape`
  1339.  (reverse Landscape) commands on the `Orientation `Menu select
  1340.  the page orientation used by the display.
  1341.  `Landscape` implies a clockwise rotation of the paper by 90 degrees.
  1342.  `Seascape` implies an anti-clockwise rotation of the paper by 90 degrees.
  1343.  These orientation options only affect the display and do not affect
  1344.  the print commands.
  1345.  If a `DSC` page orientation comment is found, the orientation will be
  1346.  selected automatically.
  1347.  
  1348.  When the `Swap Landscape` option is `checked`, GSview swaps the
  1349.  meaning of Landscape and Seascape.
  1350.  Most of the Landscape documents that I have encountered require a 90
  1351.  clockwise rotation of the paper to view.
  1352.  However, there is no standard and some documents need to be rotated
  1353.  the other way.
  1354.  The `Swap Landscape` button allows GSview to automatically rotate the
  1355.  document the right way in response to the `%%Orientation` comment in the
  1356.  PostScript file.
  1357.  
  1358.  See also `Page Size and Display Resolution`.
  1359. 2Page Size and Display Resolution
  1360. ?Page Size and Display Resolution
  1361. ?Resolution
  1362. ?Zoom Resolution
  1363. ?Depth
  1364. ?Page Size
  1365. ?Media
  1366. ?User Defined
  1367.  The `Resolution` command on the `Media` menu selects the display
  1368.  resolution in dots per inch.
  1369.  The default for a VGA display is 96 dots per inch.
  1370.  
  1371.  For DSC conforming files, pressing the right mouse button will
  1372.  zoom into the page at what is usually printer resolution.
  1373.  Pressing the right mouse button a second time will zoom back out to
  1374.  normal display resolution.
  1375.  The `Zoom Resolution` command on the `Media` menu sets the zoom
  1376.  resolution in dots per inch.
  1377.  
  1378.  The `Depth` sub menu on the `Media` menu selects the display
  1379.  depth in bits per pixels.
  1380.  
  1381.  The `Media` menu also allows selection of page size.
  1382.  Available page sizes are:
  1383.   Letter          8.5 x 11   inch
  1384.   Tabloid        11   x 17   inch
  1385.   Ledger         17   x 11   inch
  1386.   Legal           8.5 x 14   inch
  1387.   Statement       5.5 x  8.5 inch
  1388.   Executive       7.5 x 10   inch
  1389.   A3              297 x 420  mm
  1390.   A4              210 x 297  mm
  1391.   A5              148 x 210  mm
  1392.   B4              257 x 364  mm
  1393.   B5              182 x 257  mm
  1394.   Folio           8.5 x 13   inch
  1395.   Quarto          8.5 x 10.8 inch
  1396.   10x14          10   x 14   inch
  1397.  
  1398.  A user defined size can be specified in PostScript points (1/72 inch)
  1399.  with the `User Defined` command.  A size of 480x360 points at 96 dpi
  1400.  will give an image size of 640x480 pixels.
  1401.  
  1402.  If a `DSC` media comment is found, the page type will be selected
  1403.  automatically.  If the media specification is not one of the above
  1404.  page types, the `User Defined` size will be set.
  1405. 2Keys
  1406. ?Keys
  1407.  Following are the key assignments for GSview.
  1408.  
  1409.  `O`, `o`  Open and display a file.  (`File` | `Open`)
  1410.  
  1411.  `C`, `c`  Close file.  (`File` | `Close`)
  1412.  
  1413.  `N`, `n`, `+`  Next Page.  (`View` | `Next Page`)
  1414.  
  1415.  `V`, `v`, `-`  Previous Page.  (`View` | `Previous Page`)
  1416.  
  1417.  `G`, `g`  Goto Page.  (`View` | `Goto Page`)
  1418.  
  1419.  `I`, `i`  File information.  (`File` | `Info`)
  1420.  
  1421.  `R`, `r`  Redisplay page.  (`View` | `Redisplay`)
  1422.  
  1423.  `S`, `s`  Select file: open but don't display.  (`File` | `Select File`)
  1424.  
  1425.  `A`, `a`  Save As. (`File` | `Save As`)
  1426.  
  1427.  `P`, `p`  Print all or some pages to a printer.  (`File` | `Print`)
  1428.  
  1429.  `F`, `f`  Print all or some pages to a File.  (`File` | `Print To File`)
  1430.  
  1431.  `E`, `e`  Extract some pages to another File.  (`File` | `Extract`)
  1432.  
  1433.  `F1`  Help.  (`Help` | `Contents`)
  1434.  
  1435.  `Ctrl+C`, `Insert`  Copy displayed bitmap to clipboard.  (`Edit` | `Copy`)
  1436.  
  1437. W
  1438.  `Up`  Scroll up 16 pixels.
  1439.  
  1440.  `Down`  Scroll down 16 pixels.
  1441.  
  1442.  `Left`  Scroll left one screen.
  1443.  
  1444.  `Right`  Scroll right one screen.
  1445. P
  1446.  `Arrow Keys`  Scroll by 16 pixels.
  1447.  
  1448.  `Ctrl+Left`  Scroll left one screen.
  1449.  
  1450.  `Ctrl+Right`  Scroll right one screen.
  1451.  
  1452.  `Ctrl+Page Up`  Scroll left one screen.
  1453.  
  1454.  `Ctrl+Page Down`  Scroll right one screen.
  1455. E
  1456.  
  1457.  `Page Up`  Scroll up one screen (window height).
  1458.  
  1459.  `Page Down`  Scroll down one screen.
  1460.  
  1461.  `Home`  Scroll to top of page.
  1462.  
  1463.  `End`  Scroll to bottom of page.
  1464. W
  1465. 2Running GSview from the File Manager
  1466. ?Registration Info Editor
  1467. ?File Manager
  1468.  If you used the GSview installation program, then the File Manager
  1469.  will already know about PostScript files.  If you didn't use the
  1470.  GSview installation program, read on.
  1471.  
  1472.  To run GSview when a PostScript file is double clicked in the
  1473.  Windows 3.1 File Manager, the following sequence must be followed 
  1474.  to teach File Manager about PostScript files.
  1475.  
  1476.  From the `Program Manager`, run the Registration Info Editor using
  1477.  `File `| `Run...` then type `regedit`.
  1478.  From the `Registration Info Editor` select `Edit `| `Add File Type...`
  1479.  then enter the following fields:
  1480.   Identifier = psfile
  1481.   Filetype = PostScript
  1482.   Action = Open
  1483.   Command = gsview %1
  1484.   Uses DDE = unchecked
  1485.   Action = Print
  1486.   Command = gsview /p %1
  1487.   Uses DDE = unchecked
  1488.  Then press `OK`.
  1489.  
  1490.  From the `File Manager`, select `File `| `Associate` then
  1491.  enter the following fields:
  1492.   Files with Extension = ps
  1493.   Associate With = PostScript (gsview)
  1494.  Then press `OK`.
  1495.  
  1496.  Put gsview.exe and gsview.hlp in a directory on your PATH.
  1497.  That's it!  Now when you double click on a PostScript file,
  1498.  the `File Manager` will run GSview.  When you drop a PostScript
  1499.  file on the `Print Manager`, GSview will print the file.
  1500.  
  1501.  For Windows 95, the configuration is instead made using Windows
  1502.  Explorer.
  1503.  
  1504.  Start `Windows Explorer`.  Select `View `| `Options `.  Select the
  1505.  `File Types` tab.  Select the `New Type` button.  
  1506.  Enter the following fields:
  1507.   Description of type = PostScript
  1508.   Associated Extension = PS EPS
  1509.  Press the `New` button, then enter
  1510.   Action = open
  1511.   Application used to perform action = c:\gsview\gsview32.exe
  1512.  Press the `OK` button
  1513.  
  1514.  Press the `New` button, then enter
  1515.   Action = print
  1516.   Application used to perform action = c:\gsview\gsview32.exe /p
  1517.  Press the `OK` button
  1518.  
  1519.  Press the `Close `button.
  1520.  
  1521.  Press the `Close `button.
  1522. E
  1523. 2Command line options
  1524. ?Command line options
  1525.  Usage:
  1526. W
  1527.   gsview [/D] filename
  1528.   gsview [/D] /F filename
  1529.   gsview [/D] /P filename
  1530.   gsview [/D] /S[port] filename
  1531. P
  1532.   gvpm [/D] filename
  1533.   gvpm [/D] /F filename
  1534.   gvpm [/D] /P filename
  1535. E
  1536.  
  1537.  To start GSview and display filename.ps use:
  1538. W
  1539.   gsview filename.ps
  1540. P
  1541.   gvpm filename.ps
  1542. E
  1543.  To start GSview and print filename.ps using Ghostscript
  1544.  (`File` | `Print`) use:
  1545. W
  1546.   gsview /P filename.ps
  1547. P
  1548.   gvpm /P filename.ps
  1549. E
  1550.  To start GSview and print filename.ps to a file using Ghostscript
  1551.  (`File` | `Print To File`) use:
  1552. W
  1553.   gsview /F filename.ps
  1554. P
  1555.   gvpm /F filename.ps
  1556. E
  1557. W
  1558.  To start GSview and spool filename.ps for printing directly to
  1559.  a printer (`File` | `Print File`) use:
  1560.   gsview /S filename.ps
  1561.  To start GSview and spool filename.ps for printing directly to
  1562.  printer port LPT3: use:
  1563.   gsview /SLPT3: filename.ps
  1564. E
  1565.  
  1566.  To start GSview in debug mode use:
  1567. W
  1568.   gsview /D
  1569. P
  1570.   gvpm /D
  1571. E
  1572.  In debug mode GSview will `not` remove its temporary files.
  1573.  This is to allow inspection of these files after GSview has finished.
  1574.  
  1575.  GSview ignores the case of option:
  1576.  /p is the same as /P.
  1577. 2World Wide Web
  1578. ?World Wide Web
  1579. ?WWW
  1580. ?HTML
  1581.  The World Wide Web home page for Ghostscript, Ghostview and GSview 
  1582.  is at
  1583.   http://www.cs.wisc.edu/~ghost/index.html
  1584.  
  1585.  GSview can be used as a PostScript file viewer for several OS/2
  1586.  and MS-Windows Web browsers.  See the GSview home page for details.
  1587. 2Copyright
  1588. ?Copyright
  1589.  The `About` menu item shows the GSview copyright message
  1590.  and GSview version number.
  1591.  
  1592. W
  1593.   GSVIEW.EXE - A Ghostscript graphical interface
  1594. P
  1595.   GVPM.EXE - A Ghostscript graphical interface
  1596. E
  1597.   Copyright (C) 1993-1996, Russell Lang.  All rights reserved.
  1598.   Portions Copyright (C) 1994, Timothy O. Theisen.  All rights reserved.
  1599.  
  1600.  This file is part of GSview.
  1601.  
  1602.  This program is distributed with NO WARRANTY OF ANY KIND.  No author
  1603.  or distributor accepts any responsibility for the consequences of using it,
  1604.  or for whether it serves any particular purpose or works at all, unless he
  1605.  or she says so in writing.  Refer to the GSview Free Public Licence
  1606.  (the "Licence") for full details.
  1607.  
  1608.  Every copy of GSview must include a copy of the Licence, normally in a
  1609.  plain ASCII text file named LICENCE.  The Licence grants you the right
  1610.  to copy, modify and redistribute GSview, but only under certain conditions
  1611.  described in the Licence.  Among other things, the Licence requires that
  1612.  the copyright notice and this notice be preserved on all copies.
  1613.  
  1614.      Author: Russell Lang
  1615.    Internet: rjl@aladdin.com
  1616. 2Common Problems
  1617. ?Common Problems
  1618. ?Problems
  1619. W
  1620.  `Problem:` Can't run gswin...
  1621.  
  1622.  GSview requires Ghostscript for Windows (gswin.exe).
  1623.  This error message usually occurs if you don't have Ghostscript
  1624.  for Windows, or if GSview can't find Ghostscript for Windows.
  1625.  
  1626.  From the GSview menu select `Options` | `Ghostscript Command`
  1627.  and enter the correct executable path and include path for Ghostscript.
  1628.  For example:
  1629.   c:\gs\gswin.exe -Ic:\gs
  1630.  
  1631.  You must set the include path for Ghostscript using either the
  1632.  `-I` command or the `GS_LIB` environment variable.
  1633.  
  1634.  Make sure you don't already have Windows Ghostscript running.
  1635.  Only one copy of Windows Ghostscript can be running at a time.
  1636.  Only one copy of GSview can be running at a time.
  1637.  
  1638.  If you can't get GSview to run Ghostscript correctly, make sure
  1639.  you can run Ghostscript on its own.
  1640. P
  1641.  `Problem:` Can't run gsos2...
  1642.  
  1643.  GSview requires OS/2 Ghostscript (gsos2.exe).
  1644.  This error message occurs if you don't have OS/2 Ghostscript,
  1645.  or if GSview can't find OS/2 Ghostscript.
  1646.  
  1647.  From the GSview menu select `Options` | `Ghostscript Command`
  1648.  and enter the correct executable path and include path for Ghostscript.
  1649.  For example:
  1650.   c:\gs\gsos2.exe -Ic:\gs;c:\gs\fonts;c:\psfonts
  1651.  
  1652.  You must set the include path for Ghostscript using either the
  1653.  `-I` command or the `GS_LIB` environment variable.
  1654.  
  1655.  If you can't get GSview to run Ghostscript correctly, make sure
  1656.  you can run Ghostscript on its own.
  1657. E
  1658.  
  1659.  `Problem:` Ghostscript starts and then immediately exits with error code 1.
  1660.  
  1661. W
  1662.  Read the error message in the Ghostscript window before pressing
  1663.  OK in the message box.
  1664.  
  1665. E
  1666.  Ghostscript probably couldn't find its initialisation files.
  1667.  Set the Ghostscript include path by adding `-Idirectory` to the
  1668.  command in `Options` | `Ghostscript Command`, where `directory`
  1669.  includes the name of the directory that contains the Ghostscript
  1670.  initialisation files,
  1671.  Alternatively, set the environment variable GS_LIB.
  1672.  
  1673.  Read the file use.doc that comes with Ghostscript.
  1674.  
  1675.  If you can't get GSview to run Ghostscript correctly, make sure
  1676.  you can run Ghostscript on its own.
  1677.  
  1678. W
  1679.  Alternatively, you may be using an incompatible version of Ghostscript,
  1680.  or you may have the `Options` | `Ghostscript Version` set incorrectly.
  1681.  This version of GSview should be used with Ghostscript version `3.12` 
  1682.  or later.
  1683.  If you are using an incompatible version of Ghostscript or you
  1684.  have `Options` | `Ghostscript Version` set incorrectly, the
  1685.  Ghostscript text window will show one of the following error messages
  1686.   undefined in ear
  1687.   undefined in XXclear
  1688.  where `XX` are a pair of garbage characters.
  1689.  
  1690.  `Problem:` Message Box says `Incompatible Windows Ghostscript`
  1691.  
  1692.  You probably have an earlier version of Ghostscript.
  1693.  Get Ghostscript version 3.12 or later.
  1694.  
  1695.  `Problem:` GSview says 'Drawing...' or 'Printing...' and shows an
  1696.  hourglass cursor.  When the cursor is moved off the GSview window
  1697.  it changes to a normal arrow.
  1698.  
  1699.  The above state is normal while GSview is waiting for Ghostscript
  1700.  to do something.  It may be that the document is very complex and
  1701.  Ghostscript is just taking a long time.  In this state it is safe to
  1702.  resize or scroll the window, but do not select any menu commands.
  1703.  
  1704.  If this is not the case then GSview probably got no response
  1705.  from Ghostscript.
  1706.  Open the Ghostscript text window and look at any error messages.
  1707.  Close Ghostscript using the Ghostscript system menu.
  1708.  If GSview is still waiting, press the GSview Open button
  1709.  (even though the cursor is still an hourglass).
  1710.  Press the 'Yes' button on the 'gsview is busy' message box.
  1711.  GSview should then revert to the non-waiting mode.
  1712.  
  1713.  `Problem:` Message Box says `Imitation pipe handle is zero`
  1714.  
  1715.  If you are running Windows 95 or NT, this is probably caused by a mismatch
  1716.  between GSview and Ghostscript. Make sure you are running both GSview32 
  1717.  and gswin32.
  1718.  
  1719.  `Problem:` GSview displays a "Pipe error" message box.
  1720.  
  1721.  GSview could not open a temporary file.  GSview requires a temporary
  1722.  file for `piping` commands to Ghostscript.  This temporary file is
  1723.  created in the directory given by the environment variable TEMP,
  1724.  or if that is not set, in the current directory.
  1725.  `Pipe error` will result when
  1726.  
  1727.  1. TEMP is not set and the current directory is read-only.
  1728.  For example, the current directory is on a CD-ROM or a network.
  1729.  
  1730.  Solution:  Set TEMP environment variable in AUTOEXEC.BAT.
  1731.  
  1732.  2. TEMP is set but does not point to a valid read-write directory.
  1733.  
  1734.  Solution: Change TEMP to point to a directory that exists
  1735.  and is read-write.
  1736.  
  1737.  3. Disk is full.
  1738.  
  1739.  `Problem:` Ghostscript under Win32s won't print anything.
  1740.  
  1741.  Under Win32s, the 16 bit spooler functions are not available
  1742.  and the 32 bit spooler functions are not implemented.
  1743.  That is, Win32s is the worst of both worlds.
  1744.  The printer output code in Aladdin Ghostscript 3.51 for Win32s 
  1745.  attempts to write directly to a port.  
  1746.  This works on some computers, but fails on others.  
  1747.  If it doesn't work on your computer, you have two options:
  1748.  
  1749.  1. `Print To File`, then `Print File`.  GSview under Win32s can
  1750.  write to the 16 bit spooler, using a 16 bit program.
  1751.  
  1752.  2. Try the mswinpr2 device.
  1753.  
  1754.  Aladdin Ghostscript 3.53 starts the 16 bit program gs16spl.exe
  1755.  to spool printer output.  It does not suffer from the problem
  1756.  described above.
  1757. E
  1758.  
  1759.  `Problem:` GSview says that a multipage PostScript file produced
  1760.  by MS-Windows contains 0 pages and will only show the first page.
  1761.  
  1762.  This is because the document does not have correct DSC comments.
  1763.  From the Control Panel, select `Printers`, `Options...`, then in the
  1764.  `Print to` group box click on the `Printer` radio button.  You cannot
  1765.  use the `Print To` `Encapsulated PostScript File` for printing
  1766.  multipage files.  The correct method is to connect the printer
  1767.  to `FILE:`.
  1768.  In addition,
  1769.  from the Control Panel select `Printers`, `Options...`, `Advanced` and
  1770.  then check `Conform to Adobe Document Structuring Convention`.
  1771.  
  1772.  The DSC comment `%%Pages: 0` means that the document does not produce
  1773.  any pages.  That is, the PostScript `showpage` operator is not used.
  1774.  If you find a PostScript document that has multiple pages and contains
  1775.  the `%%Pages: 0` comment, change the first line from `%!PS-Adobe-` to `%!`.
  1776.  GSview will then ignore the DSC comments and allow you to view all
  1777.  pages, but only in the original order.  Complain to the author of the
  1778.  program that produced that PostScript file.
  1779.  
  1780.  Some PostScript printer drivers include code that is specific to 
  1781.  a particular printer.  The PostScript output from these drivers may
  1782.  be unportable and may not display in GSview.  If you are having this
  1783.  problem, try using a reasonably generic PostScript driver such as
  1784.  `Apple LaserWriter II NT` for PostScript level 2 printers, or
  1785.  `Apple LaserWriter Plus` for PostScript level 1 printers.
  1786.  
  1787.  `Problem:` PostScript files produced by MS-Windows start with a Control-D.
  1788.  
  1789.  Since this occurs even when the PostScript printer
  1790.  `Conform to Document Structuring Convention`
  1791.  checkbox is checked, this must be considered a
  1792.  bug in the MS-Windows PostScript printer driver.
  1793.  The bug fix is documented in the MS-Windows PRINTERS.WRI file.
  1794.  Edit the win.ini file and search for the PostScript printer section.
  1795.  There may be more than one.  In each of these sections add
  1796.  `CTRLD=0` as shown below.
  1797.  
  1798.   [Apple LaserWriter II NT,FILE]
  1799.   CTRLD=0
  1800.  
  1801.  `Problem:` PostScript files produced by Word for Windows 6.0
  1802.  cause a "Missing %%Pages comment" message box.
  1803.  
  1804.  Congratulations.  You have just found a mistake in the DSC comments
  1805.  when Word included an EPS file.  Word should have surrounded the
  1806.  included EPS file with the lines
  1807.   %%BeginDocument: filename.eps
  1808.   %%EndDocument
  1809.  Because Word didn't do this, GSview can't tell how many pages
  1810.  are in the document and where they are located.
  1811.  
  1812.  Please complain to Microsoft.  There is a problem in the EPSIMP.FLT
  1813.  filter version 2.01 which Microsoft needs to fix.
  1814.  
  1815.  In the interim, you have two solutions:
  1816.  
  1817.  1. Select `Options` | `Ignore DSC`
  1818.  
  1819.  2. Edit the PostScript file to correct the DSC comments.
  1820.  Search the PostScript file for all lines containing
  1821.    %MSEPS Preamble
  1822.  From each of these lines, search forward for the start of the
  1823.  included EPS file which should start with a line like
  1824.   %%PS-Adobe-3.0 EPSF-3.0
  1825.  Above these lines add the line
  1826.   %%BeginDocument: AddedByHand
  1827.  
  1828.  Then search for all lines containing
  1829.   %MSEPS Trailer
  1830.  Above these lines add the line
  1831.   %%EndDocument
  1832.  
  1833.  GSview should then be able to display the file correctly.
  1834.  
  1835.  `Problem:` Ghostscript always outputs to a printer instead of the
  1836.  GSview window.
  1837.  
  1838.  You must not use the GS_DEVICE environment variable.
  1839. W
  1840.  
  1841.  `Problem:` Ghostscript displays a message box "pipe overflow".
  1842.  
  1843.  The document may contain incorrect DSC comments.
  1844.  
  1845.  You must wait until Ghostscript is not busy before attempting to
  1846.  display another page.  Exit and then restart GSview.
  1847. E
  1848. 2Whats new
  1849. ?What's new
  1850.   ----------------------
  1851.   Version 1.4 1996-01-02
  1852.   ----------------------
  1853.   All:
  1854.    File was being opened twice if file was changed.
  1855.    Should be used with Aladdin Ghostscript 3.53.
  1856.   Win16:
  1857.    Prevented GPF when running out of memory.
  1858.    Reduced stack size and pipe buffer size to allow larger documents
  1859.    to be displayed.  If only numeric page labels are used, 500 page
  1860.    documents should be OK.
  1861.   PM:
  1862.    Requires emx 0.9b or later.
  1863.    PDF viewing was broken when "Configure Ghostscript" was added.
  1864.  
  1865.  
  1866.   ----------------------------
  1867.   Version 1.33 beta 1995-11-30
  1868.   ----------------------------
  1869.   All:
  1870.    Added PageOffset for printers.  See the Properties dialog box.
  1871.    Add 'Edit Properties' dialog box to allow user to add, edit or delete
  1872.    properties for a printer without having to hand edit the INI file.
  1873.   Win:
  1874.    Installation program now creates "GS Tools" program group and
  1875.    adds File Manager associations for .ps and .eps to the registry.
  1876.    
  1877.  
  1878.   ----------------------------
  1879.   Version 1.32 beta 1995-11-23
  1880.   ----------------------------
  1881.   All:
  1882.    Installation programs added.
  1883.   Win32s:
  1884.    Uses new gsv16spl.exe to write to the 16-bit spooler from Win32s.
  1885.   PM:
  1886.    Fixed printing of non DSC documents (was broken when printer
  1887.    dialog boxes were combined).
  1888.  
  1889.   ----------------------------
  1890.   Version 1.31 beta 1995-11-03
  1891.   ----------------------------
  1892.   This is an interim release, intended to fix some known problems
  1893.   and add a few new features, but does not include the full DLL
  1894.   implementation needed to work reliably under Windows 95/NT,
  1895.   or paper size handling using level 2 setpagedevice.
  1896.   It is intended for use with Aladdin Ghostscript 3.51.
  1897.   All:
  1898.    Still doesn't work with landscape PostScript that sets the
  1899.    clipping path.
  1900.    Combined printer dialog boxes.
  1901.    Allow user supplied preview file in creation of DOS EPS file for both 
  1902.    GSview "Edit | Add EPS Preview | User Supplied Preview" and EPSTOOL.
  1903.    Added warning if EPS BoundingBox was entirely off the page.
  1904.    Replace label of "%%Pages: () 1" with page number.
  1905.    Changed "Ghostscript Command" into "Configure Ghostscript" which
  1906.    has separate "Ghostscript EXE" and "Ghostscript Include Path".
  1907.    Changed TIFF code to work on big-endian architectures, to allow
  1908.    EPSTOOL to run under Solaris.
  1909.    Directories src, gsgrab and epstool are now in ZIP files, since
  1910.    most people won't want them unzipped.
  1911.   PM:
  1912.    Uses print queues instead of writing to ports.
  1913.    It is now possible to use a Ghostscript path with embedded spaces.
  1914.    Allow user to specify drawing method GpiDrawBits or WinDrawBitmap
  1915.    to dodge display driver bugs.
  1916.    Recover when last directory is invalid (usually no floppy in drive).
  1917.   Win:
  1918.    Added Ghostscript 3.51 to "Options | Ghostscript Version".  Selecting
  1919.    GS 3.51 puts quotes around filenames in response files to allow embedded
  1920.    spaces.  This won't work with GS 3.33.
  1921.   Win32:
  1922.    Uses print queues under Win95 and WinNT.
  1923. 2Internals
  1924. ?Internals
  1925. W
  1926.  The preferred method for driving Ghostscript would be to start it
  1927.  as a child process and then to send it PostScript code through a pipe.
  1928.  Windows 3.1 supports neither child processes nor pipes.
  1929.  
  1930.  GSview interacts with Ghostscript by sending messages between
  1931.  the GSview and Ghostscript windows.
  1932.  GSview creates an imitation pipe to Ghostscript by writing
  1933.  into a shareable global memory block (or memory mapped file
  1934.  under Windows 95 or NT) and then passing the handle to Ghostscript.
  1935.  
  1936.  GSview starts Ghostscript for displaying using
  1937.   gswin -dBitsPerPixel=x -dSAFER -rXDPIxYDPI -gWIDTHxHEIGHT -sGSVIEW=xxxx -
  1938.  where xxxx is the handle to the GSview window.
  1939.  Ghostscript then tells GSview the handle to the text window by sending
  1940.  a message WM_USER with wParam HWND_TEXT=0 to the GSview window.
  1941.  Instead of creating another window for the image, Ghostscript
  1942.  creates a child window of the GSview window for displaying
  1943.  the bitmap. Ghostscript tells GSview the handle to this child
  1944.  image window by sending a message WM_USER with wParam
  1945.  HWND_IMGCHILD=1.
  1946.  
  1947.  Ghostscript also sends WM_USER messages to GSview with wParam
  1948.  GSWIN_CLOSE=2 when it is exiting,
  1949.  SYNC_OUTPUT=3 when the image needs to be redrawn (win_sync_output),
  1950.  OUTPUT_PAGE=4 when a page is to be output (win_output_page),
  1951.  SCROLL_POSITION=5 when the window is scrolled,
  1952.  PIPE_DATA=6 for passing the handle to a global memory block (in
  1953.  lParam) for the imitation pipe,
  1954.  BEGIN=7 when "-1 false .outputpage" is executed and
  1955.  END=8 when "-2 false .outputpage" is executed.
  1956.  
  1957.  When Ghostscript sends the OUTPUT_PAGE command it waits until it
  1958.  receives a NEXT_PAGE command from GSview.
  1959.  
  1960.  GSview sends WM_USER messages to the Ghostscript Image window with
  1961.  wParam NEXT_PAGE=10 when it is time to move to the next page and
  1962.  COPY_CLIPBOARD=11 when the bitmap should be copied to the clipboard.
  1963.  GSview sends WM_USER messages to the Ghostscript Text window with
  1964.  wParam PIPE_REQUEST=12 when it wants more pipe data.
  1965.  
  1966.  GSview uses temporary files of the name gsviewXX.XXX in the
  1967.  directory given by the TEMP environment variable.
  1968.  Keep TEMP short to avoid the gswin command line exceeding 128 characters.
  1969.  
  1970.  GSview starts Ghostscript for printing using
  1971.   gswin -sGSVIEW=xxxx @optfile
  1972.  optfile contains
  1973.   -dNOPAUSE
  1974.   -dSAFER
  1975.   -sDEVICE=devname
  1976.   -rXDPIxYDPI
  1977.   -gWIDTHxHEIGHT
  1978.   -sOutputFile=outfilename
  1979.   filename.ps
  1980.   quit.ps
  1981.  
  1982. P
  1983.  GSview starts Ghostscript for displaying using
  1984.   gsos2 -dBitsPerPixel=x -dSAFER -rXDPIxYDPI -gWIDTHxHEIGHT -sGSVIEW=xxxx -
  1985.  where xxxx is a string used to access a named shareable memory block,
  1986.  two semaphores and a queue.  These are listed in gdevpm.h.
  1987.  The shareable memory block contains a bitmap in BMP format.
  1988.  The SYNC semaphore is not used (it is used by gspmdrv.exe instead).
  1989.  The NEXT semaphore is used when waiting at each showpage.
  1990.  The MUTEX is used to sychronise access to the bitmap.
  1991.  The QUEUE is used by Ghostscript to notify GSview about the
  1992.  following significant events:  1. Starting to draw into bitmap,
  1993.  2. Synchronise (redraw) page, 3. showpage (redraw page),
  1994.  4. Ghostscript is closing, 5. Ghostscript fatal error,
  1995.  6. Palette in bitmap has changed,
  1996.  7. "-1 false .outputpage" is executed,
  1997.  8. "-2 false .outputpage" is executed.
  1998.  PostScript code is piped to the Ghostscript stdin.
  1999.  Ghostscript stdout goes to a window.
  2000.  
  2001.  GSview uses temporary files of the name gvXXXXXX in the
  2002.  directory given by the TEMP environment variable.
  2003.  
  2004.  GSview starts Ghostscript for printing using
  2005.   gsos2 @optfile
  2006.  optfile contains
  2007.   -dNOPAUSE
  2008.   -dSAFER
  2009.   -sDEVICE=devname
  2010.   -rXDPIxYDPI
  2011.   -gWIDTHxHEIGHT
  2012.   -sOutputFile=outfilename
  2013.   filename.ps
  2014.   quit.ps
  2015.  
  2016. E
  2017.